#include "thread_manager.h"


thread_manager::thread_manager(void)
{
	short_jobs = new boost::threadpool::thread_pool<thread_job>( 2 );

	long_jobs = new boost::threadpool::thread_pool<thread_job>( 2 );

	update_totals();
}

thread_manager::thread_manager( uint32_t initial_num_threads )
{
	short_jobs = new boost::threadpool::thread_pool<thread_job>( initial_num_threads );

	long_jobs = new boost::threadpool::thread_pool<thread_job>( initial_num_threads );

	update_totals();
}


thread_manager::~thread_manager(void)
{
	delete short_jobs;
	delete long_jobs;
}
